home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
PERCNT23.ZIP
/
SAMPLE.ZIP
/
PERCNTS.FRM
next >
Wrap
Text File
|
1993-10-26
|
2KB
|
94 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "PerCnt Sample"
ClientHeight = 1470
ClientLeft = 1665
ClientTop = 2220
ClientWidth = 3510
ForeColor = &H00C0C0C0&
Height = 1875
Left = 1605
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1470
ScaleWidth = 3510
Top = 1875
Width = 3630
Begin Percent Percent1
BackColor = &H00C0C0C0&
BevelBar = 0 'None
BevelInner = 3 'Lowered
BevelOuter = 1 'Raised
BevelWidth = 1
BevelWidthBar = 0
Border = 1 'Single Width
BorderWidth = 2
ForeColor = &H00FF0000&
Height = 375
Left = 240
Percent = 0
TextBackColor = &H00FFFFFF&
TextForeColor = &H00000000&
Top = 120
Width = 3015
End
Begin HScrollBar HScroll1
Height = 255
Left = 240
Max = 100
TabIndex = 2
Top = 1080
Width = 3015
End
Begin CommandButton Command2
Caption = "Down"
Height = 375
Left = 1800
TabIndex = 1
Top = 600
Width = 1455
End
Begin CommandButton Command1
Caption = "Up"
Height = 375
Left = 240
TabIndex = 0
Top = 600
Width = 1455
End
End
Sub Command1_Click ()
Dim I, J As Integer
J = HScroll1.Value
For I = J To 100
Percent1.Percent = I
HScroll1.Value = I
Next I
End Sub
Sub Command2_Click ()
Dim I, J As Integer
J = HScroll1.Value
For I = J To 0 Step -1
Percent1.Percent = I
HScroll1.Value = I
Next I
End Sub
Sub HScroll1_Change ()
Percent1.Percent = HScroll1.Value
End Sub
Sub HScroll1_Scroll ()
Percent1.Percent = HScroll1.Value
End Sub